
<main role="main">

    <section class="jumbotron text-center">
        <div class="container">
            <h1>SHOPING&nbspLIST</h1>
            <p class="lead text-muted">go shoping here.or add goods to your shoping car</p>
            <p>
                <a href="/run/MAPP/shop/index/index/page/0" class="btn btn-primary my-2">SHOPING</a>
                <a href="/run/MAPP/shop/car/mcar" class="btn btn-secondary my-2">SHOPING CAR</a>
            </p>
        </div>
    </section>

    <div class="album py-5 bg-light">
        <div class="container">

            <div class="row">
                <?php
                foreach ($shop as $v){
                    $id = \core\rtp($v["id"]);
                    $name = \core\rtp($v["name"]);
                    $info = \core\rtp($v["info"]);
                    $price = \core\rtp($v["price"]);
                    $costs = \core\rtp($v["costs"]);
                    $img = ($v["img"]);
                    $d = <<<EOF
<div class="col-md-4">
                    <div class="card mb-4 shadow-sm">
                        <img src="$img" style="width: 100%;height: 255px">

                        <div class="card-body">
                            <p class="card-text">name: $name</p>
                            <p class="card-text">info:  $info</p>
                            <div class="d-flex justify-content-between align-items-center">
                                <div class="btn-group">
                                    <a href="/run/MAPP/shop/goodm/editgoog/id/$id"  class="btn btn-sm btn-outline-secondary">EDIT</a>
                                </div>
                                <small class="text-muted">id: $id | price: $price</small>
                            </div>
                        </div>
                    </div>
                </div>
EOF;
                    echo $d;
                }
                ?>






            </div>


        </div>

        <div style="text-align: center">
            <?php echo "<a href='/run/MAPP/shop/goodm/index/page/$pageb' class=\"btn btn-sm btn-outline-secondary\">BACK</a>";?>
            <?php echo "$page";?>
            <?php echo "<a href='/run/MAPP/shop/goodm/index/page/$pagen' class=\"btn btn-sm btn-outline-secondary\">NEXT</a>";?>
        </div>
    </div>

</main>



